﻿using System.Collections.Generic;
using System.Web.Http;
using Smatime.Web.DAO;
using Smatime.Web.Models;

namespace Smatime.Web.Controllers
{
    public class StoreListByStoreIdController : ApiController
    {
        // GET api/storelistbystoreid
        public IEnumerable<string> Get()
        {
            return new[] {"value1", "value2"};
        }

        // GET api/storelistbystoreid/5
        public ListStoreOfCompany Get(int id)
        {
            return new ListStoreOfCompanyRepository().GetByStoreId(id);
        }

        // POST api/storelistbystoreid
        public void Post([FromBody] string value)
        {
        }

        // PUT api/storelistbystoreid/5
        public void Put(int id, [FromBody] string value)
        {
        }

        // DELETE api/storelistbystoreid/5
        public void Delete(int id)
        {
        }
    }
}